export const routes = [
        {
			path: '/', 
			redirect: '/dashboard'
		},
        {
            path: '/dashboard',
            name: 'dashboard',
            component: () => import('_c/tabbar/TabBar.vue'),
            children: [
                {
					path: '/dashboard', 
					redirect: '/dashboard/home'
				},
                {
					path: 'home', 
					name: 'home', 
					component: () => import('_v/home/Home.vue'), 
					// meta: {keepAlive: true}
				},
                {
					path: 'category',
					name: 'category',
					component: () => import('_v/category/Category.vue')
				},
                {
					path: 'task',
					name: 'task',
					meta: {
						needLogin: true
					},
					component: () => import('_v/task/Task.vue')
				},
                {
					path: 'mypage',
					name: 'mypage',
					meta: {
						needLogin: true
					},
					component: () => import('_v/mypage/Mypage.vue')
				}
            ]
        },
		{
			path: '/commodity/:id(\\d+)',
			name: 'commodity_detail',
			component: () => import('_v/commodity/Detail.vue')
		},
		{
			path: '/uc',
			name: 'uc',
			component: () => import('_c/header/Ucheader.vue'),
			children: [
				{
					path: 'profile',
					name: 'uc_profile',
					meta: {
						title: "个人资料",
					},
					component: () => import('_v/account/Profile.vue'),
				},
				{
					path: '', 
					name: 'uc_home',
					redirect: '/uc/profile',
					component: () => import('_v/account/Profile.vue')
				},
				{
					path: 'username',
					name: 'uc_username',
					meta: {
						title: "修改用户名"
					},
					component: () => import('_v/account/ChangeUsername.vue'),
				}
			]
		},
		{
			path: '/publish', 
			name: 'publish', 
			meta: {
				needLogin: true
			},
			component: () => import('_v/publish/Publish.vue'), 
		},
		,
		{
			path: '/search', 
			name: 'search', 
			meta: {
				needLogin: true
			},
			component: () => import('_v/search/Search.vue'), 
		},
        {
            path: '/regist',
            name: 'regist',
            component: () => import('_v/regist/Regist3.vue')
        },
        {
            path: '/login',
            name: 'login',
            component: () => import('_v/login/Login.vue')
        },
        {
            path: '/403',
            name: 'url403',
            component: () => import('_v/403.vue')
        },
        {
            path: '/404',
            name: 'url404',
            component: () => import('_v/404.vue')
        },
		{
			path:"/:patheMatch(.*)",
			redirect: "/404"
		},
		{
		    path: '/details',
		    name: 'details',
		    component: () => import('_v/details/Details.vue')
		},
		{
		    path: '/test',
		    name: 'test',
		    component: () => import('@/test3.vue')
		}
    ]